package com.xqc.web.client;

import com.xqc.web.annotion.XqcRpcClient;
import com.xqc.api.facade.DemoFacade;
import com.xqc.common.utils.XqcWebResult;
import org.apache.dubbo.config.annotation.DubboReference;

@XqcRpcClient
public class DemoFacadeClient {

    @DubboReference(version = "${dubbo.application.version}",check = false)
    private DemoFacade demoFacade;

    public XqcWebResult<String> test(){
        return XqcWebResult.success(this.demoFacade.say());
    }

    public XqcWebResult<String> sentinel(){
        return XqcWebResult.success(this.demoFacade.say());
    }


}
